package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.pojo.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author rebaogu
 * @description
 * @date 2022.04.08 22:10
 * @package com.cskaoyan.bean.vo
 * @Classname HomeIndexVO
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class HomeIndexVO {

    private List<MarketGoods> newGoodsList; // 商品表查询
    private List<MarketCoupon> couponList; // 优惠券信息表

    // private List<HomeIndexCoupon> couponList; // 优惠券信息表

    private List<MarketCategory> channel; // 类目
    private List<MarketGroupon> grouponList;// 为空 不知道需要返回的数据是什么 -->团购
    private List<MarketAd> banner; // market_ad 广告表
    private List<MarketBrand> brandList; // market_brand 品牌商表
    private List<MarketGoods> hotGoodsList; // 商品表 属性ishot为true
    private List<MarketTopic> topicList; // 主题表 market_topic
    private List<FloorGoodsListDTO> floorGoodsList; // 类目下的所有商品

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class HomeIndexCoupon {
        private Integer id;
        private String name;
        private String desc;
        private String tag;
        private BigDecimal discount;
        private BigDecimal min;
        private Short days;
        private Date startTime;
        private Date endTime;
    }


    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class FloorGoodsListDTO {
        private String name; // 类目的名称
        private List<MarketGoods> goodsList; // 查询这个类目下的所有商品信息
        private Integer id; // 类目的id
    }

}
